@extends('layouts.app')
@section('title','信笺详情')
@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12 col-md-offset">
                <div class="panel panel-collapse">
                    <div class="panel-heading ">
                        <div class="panel-title panel" ><h3>{{$letter->title}}</h3></div>
                        <div class="panel panel-footer" style="border-top: hidden;background-color: rgba(188, 232, 241, 0.2)">
                            <span  >寄信人 {{$letter->user}} </span>
                            <span class="pull-right" >于{{$letter->created_time}}投递</span>

                        </div>
                    </div>

                    <div class="panel-body">
                        {!! $letter->content !!}
                    </div>
                    <div class="panel panel-footer panel-danger" style="margin-bottom: 15px;border:hidden;background-color:@if($letter->status==2)
                            rgba(188, 232, 241, 0.32)
                    @elseif($letter->status==3)
                            rgba(101, 169, 66, 0.12)
                    @elseif($letter->status==4)
                            rgba(169, 66, 66, 0.12);
                    @else
                            rgba(188, 232, 241, 0.32)
                    @endif">
                        @if($letter->status==2)
                            <span class="pull-right">将在{{$letter->send_time}}送出</span>
                            @elseif($letter->status==3)
                            <span class="pull-right">已在{{$letter->send_time}}送出</span>
                            @elseif($letter->status==4)
                            <span >{{$letter->send_time}}寄送失败，请联系
                                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=847510938&site=qq&menu=yes">
                                    送信小哥
                                </a>
                             </span>
                            @else
                            <span @if($letter->status==4)class="hidden"@endif>将在{{$letter->send_time}}送出</span>
                        @endif
                            <span class="@if($letter->status==4) hidden @endif;"> 收件人 {{$letter->to}}</span>
                    </div>
                </div>
            </div>
        </div>
    </div>



@endsection